home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
gfx
/
opal
/
OpRxWind1.lzh
/
QPutBrushPT&ST.oprx
< prev
next >
Wrap
Text File
|
1993-02-04
|
3KB
|
85 lines
/* QPutBrushPT&ST.oprx: ARexx script for OpalPaint to paste a brush in both
* the stencil and paint modes in the same position. Use for a quick mask
* for text and other brushes, without having to worry about finding the
* exact place that you stamped your brush. Stencil is done first, so the
* paint mode can be undone. Invert the stencil and recolor text, etc.
* This is the somewhat quicker version - you chose the desired brush before
* running the script by clicking on B1, B2, B3, then run it.
***** Brian Wind, February 3, 1993 *****
* Install in your OpalPaint rexx directory (opalpaint:rexx) or wherever
* you store your ARexx scripts (rexx:). Use OpalPaint's ARexx Control Item
* to set this script to a function key (i.e. type the script name into one
* of the function key boxes). Then make and select a brush in B1, B2, or
* B3. Press Amiga key and function key together, and follow the directions.
* After running script, you can go to ST mode, invert the stencil, return
* to paint mode and recolor, rubthru or alter the area under the stamp.
* Note: using a small rectangular brush doesn't work quite right in
* OpalPaint 1.4.
*/
address 'OpalPaint_Rexx'
options Results
/*SaveSetUp*/
AskBool "Click on the image to paste\nor choose Cancel to abort."
if RC>5 | result==0 then exit
/* Let user click on image to place brush */
GetPoint
if RC>5 then exit
parse var result PX PY
/* Next statement for debug purposes */
/*askbool invST' 'bn' 'PX' 'PY*/
/*Busy*/
/* set to freehand drawing tool */
FreeHand
/* turn on stencil mode, invert if chosen, put brush at selected position */
WorkMode STENCIL
PutBrush PX PY
/* flip to paint mode and turn off stencil to paint brush */
WorkMode IMAGE
StenEnable 0
ColorSource MULTICOLOR
PutBrush PX PY
/*NotBusy*/
/* To return your original setup (i.e. sten on, AL mode, tran etc.), remove
* the comment markers on the next line. Be forewarned that this will not
* allow you to undo the last painting step */
/*RestoreSetUp*/
/* or remove the comments around this group of commands to give a simple
* undo of stencil and paint (simple means that when the brush was stamped
* in ST mode it could have already masked some other detail in your
* stencil and this can not be undone */
/*
TB1="Click Cancel to undo the procedure.\n"
TB2="The stencil will be stamped in reverse,\n"
TB3="any detail covered up is already lost."
AskBool TB1 || TB2 || TB3
if RC>5 | Result==1 then exit
else
do
Undo
WorkMode STENCIL
InvertSten
PutBrush PX PY
InvertSten
WorkMode IMAGE
StenEnable 0
end
RestoreSetUp
*/
exit